<div id="content">
				<div class="breadcrumb">
					<p><a href="<?php echo $this->Html->url(array('controller' => 'applies', 'action'=>'index')); ?>">Thị trường lao động</a> > <a href="<?php echo $this->Html->url(array('controller' => 'applies', 'action'=>'category', $Apply['ApplyType']['id'])); ?>"><?php echo $Apply['ApplyType']['name']; ?></a> > <?php echo $Apply["Apply"]["tieude"] ?></p>
				</div><!--end breadcrumb-->	
				
				<div class="group1_ttld">
			<div class="info first">
				<h2>Thông tin người tìm việc</h2>

         <div style="overflow: hidden">
            <table width="100%" cellpadding="0">
                <tbody><tr>
                    <td valign="top">
                        <table cellpadding="3" class="jobs">
                           <tbody><tr>
                               <td valign="top" nowrap="nowrap" class="key">Tiêu đề hồ sơ:</td>

                               <td><strong><span class="impression"><?php echo $Apply["Apply"]["tieude"] ?></span></strong></td>
                           </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Tên ứng viên:</td>
                               <td><?php echo $Apply["Apply"]["tenungvien"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Ngày sinh:</td>
                               <td><a href="#"><?php echo date('d-m-Y', strtotime($Apply["Apply"]["tieude"] ))?></a></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Giới tính:</td>
                               <td><?php echo $Apply["Apply"]["gioitinh"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Địa chỉ:</td>
                               <td><?php echo $Apply["Apply"]["diachi"] ?></td>                             
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Điện thoại:</td>
                               <td>
                                    <?php echo $Apply["Apply"]["dienthoai"] ?>
                               </td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Điện thoại di động:</td>
                               <td><?php echo $Apply["Apply"]["didong"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Trình độ:</td>
                               <td><?php echo $Apply["Apply"]["trinhdo"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Email:</td>
                               <td><?php echo $Apply["Apply"]["email"] ?></td>
                            </tr>
  
                        </tbody></table>
                    </td>
                    <td align="right" width="130" valign="top">
                               <div class="box">
                                          <?php echo $this->Html->image("/uploads/apply_image/filename/thumb/default/".$Apply["ApplyImage"]["filename"], array('width'=>'100px;')); ?>
                               </div>
                    </td>
                </tr>
            </tbody></table>
         </div>
				</div><!--end info-->
			<div class="info">
				<h2>Công việc mong muốn</h2>

                    <div style="overflow: hidden">
                        <table cellpadding="3" class="jobs">
                           <tbody><tr>
                               <td valign="top" nowrap="nowrap" class="key"></td>

                               <td><strong><span class="impression"><?php echo $Apply["Apply"]["congviec"] ?></span></strong></td>
                           </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Vị trí:</td>
                               <td><?php echo $Apply["Apply"]["vitri"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Công việc mong muốn:</td>
                               <td><?php echo $Apply["Apply"]["mongmuon"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Kỹ năng công việc:</td>
                               <td><?php echo $Apply["Apply"]["kynang"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Mức lương hiện tại:</td>
                               <td><?php echo $Apply["Apply"]["luonghientai"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Mức lương mong muốn:</td>
                               <td>
                                    <?php echo $Apply["Apply"]["luongmongmuon"] ?>
                               </td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Hình thức làm việc:</td>
                               <td><?php echo $Apply["Apply"]["hinhthucviec"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Lĩnh vực ngành nghề:</td>
                               <td><?php echo $Apply["Career"]["name"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Địa điểm làm việc:</td>
                               <td><?php echo $Apply["City"]["name"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Trình độ tin học:</td>
                               <td><?php echo $Apply["Apply"]["trinhdotinhoc"] ?></td>
                            </tr>
                                         <tr>
                               <td valign="top" nowrap="nowrap" class="key">Kỹ năng giao tiếp:</td>
                               <td><?php echo $Apply["Apply"]["giaotiep"] ?></td>
                            </tr>
                                         <tr>
                               <td valign="top" nowrap="nowrap" class="key">Ngoại ngữ:</td>
                               <td><?php echo $Apply["Apply"]["ngoai ngữ"] ?></td>
                            </tr>
                                                                     <tr>
                               <td valign="top" nowrap="nowrap" class="key">Sẵn sàng di chuyển:</td>
                               <td><?php echo $Apply["Apply"]["dichuyen"] ?></td>
                            </tr>
                        </tbody></table>

                        </div>
				</div><!--end info-->
            <div class="info">
				<h2>Quá trình học tập và bằng cấp đạt được</h2>

                    <div style="overflow: hidden">
                        <table cellpadding="3" class="jobs">
                           <tbody><tr>
                               <td valign="top" nowrap="nowrap" class="key">Bằng cấp/Chứng chỉ: </td>

                               <td>
                                  <?php echo $Apply["Apply"]["bangcap"] ?>

                               </td>
                           </tr>

                            </tbody></table>
                    </div>
                </div>
            <div class="info">
				<h2>Kinh nghiệm làm việc</h2>

                    <div style="overflow: hidden">
                        <?php echo $Apply["Apply"]["kinhnghiem"] ?>
                    </div>
                </div>
			</div>
			
			<div class="group1" style="margin-top:20px">
				<script type="text/javascript">
	

    function ajaxFilterDistrict(city_id)
    {
        $.ajax({
        url: '<?php echo $this->Html->url(array("controller" => "districts", "action" => "ajaxDistrictOption", "admin" => false));?>/'+city_id,        
        success: function( data ) {
            if (console && console.log){
              $("#ProjectinfoDistrictId").html(data);
	      //alert($("#ProductDistrictId").val());
	      //ajaxFilterProject($("#ProductDistrictId").val());
            }
          }
        });
    }
    
    function ajaxFilterCareer(city_id)
    {
        $.ajax({
        url: '<?php echo $this->Html->url(array("controller" => "careers", "action" => "ajaxCareerOption", "admin" => false));?>/'+city_id,        
        success: function( data ) {
            if (console && console.log){
              $("#ProjectinfoCareerId").html(data);
	      //alert($("#ProductDistrictId").val());
	      //ajaxFilterProject($("#ProductDistrictId").val());
            }
          }
        });
    }

</script>
<div class="box_search">
					<form action="<?php echo $this->Html->url(array('action' => 'category', $Apply['ApplyType']['id'])); ?>" method="POST" id="filter_index">
						<div class="detail_search">
							<p class="key_title"><?php echo $Apply['ApplyType']['name']; ?></p>
							
							<div class="select_box">

								<input type="text" name="filter_keyword" value="<?php echo $keyword; ?>" class="keyword" />
								<select onchange="ajaxFilterDistrict(this.value);ajaxFilterCareer(this.value);$('#filter_index').submit();" name="filter_city_id">
								    <option value="all"><?php __('Tỉnh/Thành'); ?></option>
								    <?php foreach($cities as $c ) {
									$selected = "";
									if($c["City"]["id"] == $city_id)
									{
									    $selected = 'selected="selected"';
									}
								    ?>
									<option value="<?php echo $c["City"]["id"] ?>" <?php echo $selected; ?> ><?php echo $c["City"]["name"] ?></option>
								    <?php } ?>
								</select>
								<select onchange="$('#filter_index').submit();" name="filter_district_id" id="ProjectinfoDistrictId">
								    <option value="all">- <?php __('Quận/Huyện'); ?> -</option>
								    <?php foreach($districts as $d ) {
									$selected = "";
									if($d["District"]["id"] == $district_id)
									{
									    $selected = 'selected="selected"';
									}
								    ?>
									<option value="<?php echo $d["District"]["id"] ?>" <?php echo $selected; ?> ><?php echo $d["District"]["name"] ?></option>
								    <?php } ?>
								</select>
								<select onchange="$('#filter_index').submit();" name="filter_career_id" id="ProjectinfoCareerId">
								    <option value="all">- <?php __('Ngành nghề'); ?> -</option>
								    <?php foreach($careers as $ca ) {
									$selected = "";
									if($ca["Career"]["id"] == $career_id)
									{
									    $selected = 'selected="selected"';
									}
								    ?>
									<option value="<?php echo $ca["Career"]["id"] ?>" <?php echo $selected; ?> ><?php echo $ca["Career"]["name"] ?></option>
								    <?php } ?>
								</select>
							</div><!--end select_box-->
						</div><!-- end detail_search-->
					</form>

				</div><!--end box_search-->					
				
					
				<div class="table_list">

					<table id="ncdt" width="100%" cellspacing="0" cellpadding="0" border="0">
						<tr class="title">
							<td>Tiêu đề hồ sơ</td>
							<td>Tên ứng viên</td>
							<td>Tỉnh/Thành</td>
						
							<td>Kinh nghiệm</td>
							<td>Ngày đăng</td>
							
						</tr>
						<?php foreach($applies as $k => $item) {
							$class = $k%2 == 0 ? "odd" : "even" ;
						?>
									<tr class="<?php echo $class; ?>">
										<td><?php echo $this->Html->link(__($item["Apply"]["tieude"], true), array('action' => 'view', $item['Apply']['id'])); ?></td>
			
										<td><?php echo $item["Apply"]["tenungvien"] ?></td>						
										<td><?php echo $item["City"]["name"] ?></td>
										
										<td><?php echo $item["Apply"]["trinhdo"] ?></td>
										<td><?php echo $item["Apply"]["create_date"] ?></td>
										
									</tr>
						<?php } ?>
						
					</table>

				</div><!--end table_list-->
				
				
				
				
					<div id="pagination">						
						<ul class="pager">

							<li><?php echo $this->Paginator->prev('<< ' . __('trang trước', true), array(), null, array('class'=>'disabled'));?></li>
							<li>
								<?php echo $this->Paginator->numbers();?>
							</li>							
							<li><?php echo $this->Paginator->next(__('trang sau', true) . ' >>', array(), null, array('class' => 'disabled'));?></li>
						</ul>
					</div><!--end pagination-->
			</div><!--end group-->	
			
